<#assign tit><#if _oper='add'>新增<#else>修改</#if>科目代码</#assign>
<@page.html title=tit>
<div style="width:600px;">
  <form id="fm_input" method="post" action="<#if _oper='add'>_add<#else>_edit</#if>" onsubmit="return post(this);">
    <div class="kbox">
      <div style="width:450px; float:left;">
        <table class="input">
          <tr>
            <th width="30%">科目代码</th>
            <td width="70%"><#if _oper='add'><input type="text" name="tranCode" value="${dicTranCode.tranCode!}" req="科目代码" size="16" maxlength="20"><#else><input type="hidden" name="tranCode" value="${dicTranCode.tranCode!}">${dicTranCode.tranCode!}</#if></td>
          </tr>
          <tr>
            <th>科目名称</th>
            <td><input type="text" name="codeName" value="${dicTranCode.codeName!}" req="科目名称" size="40" maxlength="50"></td>
          </tr>
          <tr>
            <th>类别</th>
            <td><select name="type"><option value=""></option><#if tranCodeType??><#list tranCodeType as t><option value="${t.id}" <#if dicTranCode.type?? && dicTranCode.type=t.id> selected</#if>>${t.id} - ${t.name}</option></#list></#if></select></td>
          </tr>
          <tr>
            <th>调整代码</th>
            <td><input type="text" name="adjCode" value="${dicTranCode.adjCode!}" size="16" maxlength="20"></td>
          </tr>
          <tr>
            <th>退款代码</th>
            <td><input type="text" name="allowCode" value="${dicTranCode.allowCode!}" size="16" maxlength="20"></td>
          </tr>
          <tr>
            <th>分类</th>
            <td><select name="category"><option value=""></option><#if tranCodeCategory??><#list tranCodeCategory as t><option value="${t.id}" <#if dicTranCode.category?? && dicTranCode.category=t.id> selected</#if>>${t.id} - ${t.name}</option></#list></#if></select></td>
          </tr>
        </table>
      </div>
      <div class="clear"></div>
    </div>
    <div class="button"><input type="submit" value="提 交"></div>
  </form>
</div>
</@page.html>